/*
 * @ProjectName: flutter_common
 * @Package: 
 * @ClassName: login_register_router.dart
 * @Description: dart类作用描述 
 * @User: Page.Su
 * @Date: 2020/8/24
 * @Time: 12:39
 * @UpdateDate: 2020/8/24 12:39
 */

import 'package:fluro/fluro.dart';
import 'package:flutter_su/pages/login_register/forget_password.dart';
import 'package:flutter_su/pages/login_register/login_emali.dart';
import 'package:flutter_su/pages/login_register/login_password.dart';
import 'package:flutter_su/pages/login_register/register.dart';
import 'package:flutter_su/router/base_router.dart';

class LoginRegisterRouter with BaseRouter {

  static const String LOGIN_EMAIL = "/loginEmail"; // 登录输入邮箱页面
  static const String LOGIN_PASSWORD = "/loginPassword"; // 登录输入邮箱页面

  static const String FORGET_PASSWORD = "/forgetPassword"; // 忘记密码

  static const String REGISTER = "/register"; // 登录输入邮箱页面


  @override
  void initRouter(Router router) {

    // 输入邮箱登录
    router.define(
      LOGIN_EMAIL,
      handler: Handler(handlerFunc: (_, params) => LoginEmailPage()),
    );

    // 登录输入密码页面
    router.define(
      LOGIN_PASSWORD,
      handler: Handler(handlerFunc: (_, params) => LoginPasswordPage()),
    );

    // 注册页面
    router.define(
      REGISTER,
      handler: Handler(handlerFunc: (_, params) => RegisterPage()),
    );

    // 注册页面
    router.define(
      FORGET_PASSWORD,
      handler: Handler(handlerFunc: (_, params) => ForgetPassword()),
    );
  }
  
}